package com.ltz.web.demo;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ltz.service.demo.DemoService;

@Controller
@RequestMapping(value="/demo")
public class DemoController {
	@Resource
	private DemoService service;
	
	@RequestMapping(value="/test")
	public String test(){
		System.out.println("demoController");
		service.test();
		return "/demo/test";
	}
}
